/*
 * Win32DebugLogger.h
 *
 *  Created on: 2015年6月4日
 *      Author: chuanjiang.zh@qq.com
 */

#ifndef WIN32DEBUGLOGGER_H_
#define WIN32DEBUGLOGGER_H_


#include "rutil/Log.hxx"

#include <stdio.h>
#include <stdlib.h>

using namespace resip;


class Win32DebugLogger : public resip::ExternalLogger
{
public:
    virtual bool operator()(Log::Level level,
       const Subsystem& subsystem,
       const Data& appName,
       const char* file,
       int line,
       const Data& message,
       const Data& messageWithHeaders)
    {
        //Data txt(message);
        //txt += "\n";
        //OutputDebugStringA(txt.c_str());
        return true;
    }

};


#endif /* WIN32DEBUGLOGGER_H_ */
